<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>监察机构编辑</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/beforeClose.js"></script>
<script type="text/javascript">
			function check(form1){
		var name = document.getElementById("supOrganName");
		var frm = document.form1;
			if(name.value==""){
					alert("请输入机构名称！")
					name.focus();
					return false;
				}
			if(frm.supOrganAdministrativeLevel.value==""){
					alert("请选择行政级别！")
					return false;
				}
			if(isNaN(frm.supOrganYOrgan.value )){
				alert("应建机构应为数字！");
				frm.supOrganYOrgan.focus();
				return false;
			}
			if(isNaN(frm.supOrganZOrgan.value )){
				alert("专设机构应为数字！");
				frm.supOrganZOrgan.focus();
				return false;
			}
			if(isNaN(frm.supOrganHOrgan.value )){
				alert("合设机构应为数字！");
				frm.supOrganHOrgan.focus();
				return false;
			}
			if(isNaN(frm.supOrganZPerson.value )){
				alert("专职监察员应为数字！");
				frm.supOrganZPerson.focus();
				return false;
			}
			if(isNaN(frm.supOrganJPerson.value )){
				alert("兼职监察员应为数字！");
				frm.supOrganJPerson.focus();
				return false;
			}
			if(isNaN(frm.supOrganXPerson.value )){
				alert("监察协管员应为数字！");
				frm.supOrganXPerson.focus();
				return false;
			}
		changeLoadPage();
		}

		</script>
</head>

<body>
<form action="<%=request.getContextPath()%>/SuperviseOrgan.do?method=update&sid=${sInfo.supOrganId}" name="form1" method="post" onsubmit="return check()">
<table  border="0">
<input type="hidden" name="pages" value="${nowPage}"/>
  <tr>
	    <td align="right" class="bg_blue"><font color="red">*</font>&nbsp;&nbsp;机构名称：</td>
    <td><input type="text" name="supOrganName" value="${sInfo.supOrganName}" maxlength="40"/></td>
     <td align="right" class="bg_blue"><font color="red">*</font>&nbsp;&nbsp;行政级别：</td>
    <td>
    <cms:selectAll dataType="007" name="supOrganAdministrativeLevel" firstTitle="请选择.." key="${sInfo.supOrganAdministrativeLevel}"></cms:selectAll>
    </td>
  </tr>
  <tr>
   <td align="right" class="bg_blue">地址：</td>
    <td><input type="text" name="supOrganAddress" value="${sInfo.supOrganAddress}" maxlength="50"/></td>
	    <td align="right" class="bg_blue">电话：</td>
    <td><input type="text" name="supOrganTelNum" value="${sInfo.supOrganTelNum}" maxlength="20"/></td>
  </tr>
   <tr>
	   <td align="right" class="bg_blue">应建机构：</td>
	    <td><input type="text" name="supOrganYOrgan" value="${sInfo.supOrganYOrgan}" maxlength="10"/></td>
		    <td align="right" class="bg_blue">专设机构：</td>
	    <td><input type="text" name="supOrganZOrgan" value="${sInfo.supOrganZOrgan}" maxlength="10"/></td>
  </tr>
  <tr>
	   <td align="right" class="bg_blue">合设机构：</td>
	    <td><input type="text" name="supOrganHOrgan" value="${sInfo.supOrganHOrgan}" maxlength="10"/></td>
		    <td align="right" class="bg_blue" >专职监察员：</td>
	    <td><input type="text" name="supOrganZPerson" value="${sInfo.supOrganZPerson}" maxlength="10"/></td>
  </tr>
  <tr>
	   <td align="right" class="bg_blue">兼职监察员：</td>
	    <td><input type="text" name="supOrganJPerson" value="${sInfo.supOrganJPerson}" maxlength="10"/></td>
		    <td align="right" class="bg_blue">监察协管员：</td>
	    <td><input type="text" name="supOrganXPerson" value="${sInfo.supOrganXPerson}" maxlength="10"/></td>
  </tr>
  <tr>
  <tr><td class="nohover" align="center" colspan="4"> <input class="buttonsubmit" type="submit" value="提交" name="" />&nbsp;<input class="buttonreset" type="reset" value="重置"> <input class="buttonreturn" type="button" value="返回" name="" onClick="javascript:window.location.href='<%=request.getContextPath()%>/SuperviseOrgan.do?method=list';"/></td></tr>
</table>

</body>
</html>
